<div class="main-layout-side">
    <div class="m-logo"
        style="text-align: center;line-height: 60px;color: #fff;font-size: 20px;background: #00b5f9;font-weight: bold;">
        {{get_option('name', '后台管理系统')}}</div>
    <ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
        {% for auth in menu%}
        <li class="layui-nav-item layui-nav-itemed">
            {% if auth.children %}
            <a href="javascript:;"><i class="iconfont">&#xe607;</i>{{auth.name}}</a>
            <dl class="layui-nav-child">
                {% for auth_child in auth.children %}
                <dd>
                    <a href="javascript:;" data-url="{{url_for(auth_child.url)}}" data-id='{{auth_child.id}}'
                        data-text="{{auth_child.name}}">
                        <!--<i class="iconfont">&#xe607;</i>-->
                        <span class="l-line"></span>
                        {{auth_child.name}}
                    </a>
                </dd>
                {% endfor%}
            </dl>
            {% else %}
            <a href="javascript:;" data-url="" data-id='{{auth.id}}' data-text="{$v['name']}"><i
                    class="iconfont">&#xe60b;</i>{{auth.name}}</a>
            {% endif%}
        </li>
        {% endfor%}
    </ul>
</div>